<?php
namespace frontend\models\record;

use Yii;
use yii\base\Model;
use yii\db\Connection;
use yii\db\Query;
use common\models\User;

class PostGroup extends Model
{
    public $group_name;
    public $keywords;
    public $intro;

    public $owner_uid;
    public $create_at;
    public $state;

    public static function tableName() {
        return 'post_group';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            ['group_name', 'required'],
            ['keywords', 'required'],
            ['intro', 'required'],
        ];
    }

}
